package com.doit.学;

import java.io.*;

public class demo03 {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("D:\\work\\abc\\于和伟.mp4");
        BufferedInputStream br = new BufferedInputStream(fileInputStream);
        FileOutputStream fileOutputStream = new FileOutputStream("D:\\work\\abc\\于he伟.mp4");
        BufferedOutputStream bw = new BufferedOutputStream(fileOutputStream);

        int len ;
        byte[] bytes = new byte[1024 * 8];
        while ((len=br.read(bytes))!=-1){
            bw.write(bytes,0,len);
        }
    }
}
